import http from './http'

// 获取文章分类列表
const getArticleTypeList = (id) => {
    return http.post(
        'api/article/getArticleTypeList',
        { id }
    )
}

// 获取分类列表
const getArticleList = (id, page, limit) => {
    return http.post(
        'api/article/getArticleList',
        { cate_id: id, page, limit }
    )
}

export {
    getArticleTypeList,
    getArticleList
}